package org.springframework.security.config.annotation.authentication.configurers.provisioning;

import org.springframework.security.config.annotation.authentication.ProviderManagerBuilder;
import org.springframework.security.provisioning.InMemoryUserDetailsManager;

import java.util.ArrayList;

/**
 * @author Dillon
 * @date 2024/7/6
 * @slogan 致敬大师 致敬未来的你
 * @desc 创建一个基于内存的userDetailManager 实体类
 */
public class InMemoryUserDetailsManagerConfigurer<B extends ProviderManagerBuilder<B>>
		extends UserDetailsManagerConfigurer<B, InMemoryUserDetailsManagerConfigurer<B>> {

	/**
	 * 创建基于内存 的认证数据查询来源接口 的实例
	 */
	public InMemoryUserDetailsManagerConfigurer() {
		super(new InMemoryUserDetailsManager(new ArrayList<>()));
	}

}
